package com.zjc.yohoshop.mvp.contract;

import com.zjc.lib_core.mvp.model.IModel;
import com.zjc.lib_core.mvp.view.IView;
import com.zjc.yohoshop.bean.AddAddressEntity;
import com.zjc.yohoshop.bean.AddressListEntity;
import com.zjc.yohoshop.bean.DelAddressEntity;

import io.reactivex.Observable;

/**
 * 地址列表fragment接口
 */
public interface AddressListFragmentContract {


    //品牌fragment IView接口
    interface AddressListFragmentIView extends IView {
        void addAddressSuccess(AddAddressEntity entity);
        void addressListSuccess(AddressListEntity entity);
        void delAddressSuccess(DelAddressEntity entity);
    }

    //品牌fragment IModel接口
    interface AddressListFragmentIModel extends IModel {
        Observable<AddAddressEntity> addAddressRequest(String request);
        Observable<AddressListEntity> addressListRequest(String request);
        Observable<DelAddressEntity> delAddressRequest(String request);
    }
}
